package com.example.administrator.printoutindemo.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.example.administrator.printoutindemo.mvp.contract.Login_GongJuContract;
import com.example.administrator.printoutindemo.mvp.model.Login_GongJuModel;


@Module
public class Login_GongJuModule {
    private Login_GongJuContract.View view;

    /**
     * 构建Login_GongJuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public Login_GongJuModule(Login_GongJuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    Login_GongJuContract.View provideLogin_GongJuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    Login_GongJuContract.Model provideLogin_GongJuModel(Login_GongJuModel model) {
        return model;
    }
}